<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!--  enctype="multipart/form-data" 在上传表单时 有附件时必须要加的一个属性 -->
    <form action="http://localhost/uploadimg" method="post" enctype="multipart/form-data">
        <label for="name">姓名：</label><input type="text" name="name" id="name"><br>
        <label for="age">年龄：</label><input type="text" name="age" id="age"><br>
        <label for="img">头像：</label><input type="file" multiple="multiple" name="img" id="img"><br>
        <input type="submit" name="" id=""><br>
    </form>
</body>
</html>